<%--
    Document   : report1
    Created on : Jul 28, 2011, 7:16:41 PM
    Author     : Hoang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" href="style.css" type="text/css"/>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <h1>Photo Share</h1>
                <img src="header_right.gif" alt="hinh"/>
            </div>
            <div id="content">
                From date =<c:out value="${fromdate}"/>
                <br/>
                To date = <c:out value="${todate}"/>
                <br/>
                <table border="1">
                    <thead>
                        <tr>
                            <th>No.</th>
                            <th>Username</th>
                            <th>Email</th>
                            <th>Registered day</th>
                            <th>From date</th>
                            <th>To date</th>
                            <th>Total Upload</th>
                        </tr>
                    </thead>
                    <tbody>
                        <c:set var="i" value="0"/>
                        <c:forEach items="${report}" var="item">
                            <c:set var="i" value="${i+1}"/>
                            <c:set var="user" value="${report.registeredUser}"/>
                            <tr>
                                <td>${i+1}</td>
                                <td>${user.username}</td>
                                <td>${user.email}</td>
                                <td>${user.dateRegister}</td>
                                <td>${fromdate}</td>
                                <td>${todate}</td>
                                <td>${report.quantity}</td>
                            </tr>
                        </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
</html>
